VPN Connection issues¶
The VPN is one of the pillars of the whole DAppNode functioning, you will need a somehow decent and stable internet connection to be able to connect to the server.
Os & Ios Users¶
As the config file is automated you should not have any problem to access caused by the VPN configuration so possible causes might be:
NAT Loopback disabled¶
You are in the same local area network that the DAppNode you want to connect to, and your router does not support / does not have enabled NAT LOOPBACK, so there are IP conflicts that prevent you from connecting.
To solve it you have to figure out if your router is doing NAT LOOPBACK and activate it if it is not the case . You can easily know it by opening the terminal and typing ping + dyndns domain given at the end of the installation as server address. If the ping is successful (100% packets are transmitted with no packet loss) your router is doing NAT LOOPBACK, if it is not solving you have to either enter the admin panel of your router and look for that option and activate it, or edit the server address in the VPN profile and substitute the domain given by the internal ip of the DAppNode server (usually starting with 192.168……..). This will allow you to connect from the same local network but not from outside, to connect to your DAppNode from outside your network you will need to download another VPN profile pointing to the dyndns address (exactly as it is downloaded)
VPN ports closed¶
If your router is doing NAT LOOPBACK and you can’t access your DAppNode it is very likely that the ports used to establish the VPN connection with the server are not available. To solve this you have to enter the router admin UI and open the 500 and 4500 UDP ports. Even though we use UPNP protocol so you can forget about ports management, note that some routers could not allow upnp configuration of ports under 1024 so port 500 UDP will have to be added manually in these cases.
If you have NAT LOOPBACK activated and the VPN ports are opened it is very likely that an extension you have installed or any setup you have that affects DNS routing might be interfering in the connection , please deactivate any piece of your configuration that can have influence DNS solving.
If you are still experiencing problems to connect from your mac / iphone please ping us in our channels, we will be happy to help!!.
Windows users¶
The above situations are also relevant for Windows users, please check them before continuing reading.
If you have NAT LOOPBACK , the ports are opened and still you can´t connect the problem is in the configuration/ VPN client. Make sure you have thoroughly followed the instructions given to setup your VPN profile step by step and that you have run the following commands that can be needed for Windows machines.
Sometimes when having configured the VPN profile follwing the instructions the connection can not be established and you will get a “The network connection between your computer and the VPN server could not be established because the remote server is not responding”
To fix this error, a one-time registry change is required because the VPN server and/or client is behind NAT (e.g. home router). Run the following from an elevated command prompt. You must reboot your PC when finished.
For Windows Vista, 7, 8.x and 10¶
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f
Note that you have to run this command as elevated command prompt and then reboot your computer .
For Windows XP¶
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v ProhibitIpSec /t REG_DWORD /d 0x0 /f
Disabled Ipsec Encryption¶
Although uncommon, some Windows systems disable IPsec encryption, causing the connection to fail. To re-enable it, run the following command and reboot your PC.
For Windows XP, Vista, 7, 8.x and 10
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v ProhibitIpSec /t REG_DWORD /d 0x0 /f
Note that you have to run this command as elevated command prompt and then reboot your computer.
Linux & Android¶
If following the instructions has not made your connection to work, try to manually setup a VPN profile within your computer/phone using the credentials given in the OTP web you get after installation under the tab Linux/Android.
If you are still experiencing problems to connect from your Linux device please ping us in our channels, we will be happy to help!!.